package com.lelv.framework.action;

import java.util.ArrayList;
import java.util.List;

import com.lelv.framework.bo.IFunctionBo;
import com.lelv.framework.plugin.TreeNode;


public class FunctionAction extends BaseAction{

	private IFunctionBo functionBo;
	private List<TreeNode> treeNodeList = new ArrayList<TreeNode>();
	private TreeNode node = new TreeNode();

	public String getTreeNodes(){

		Integer adminLevel = (Integer)this.getSession().getAttribute("adminLevel");

		treeNodeList = this.functionBo.getTreeNodes(node.getId(),adminLevel);

		return "getTreeNodesOK";
	}

	public IFunctionBo getFunctionBo() {
		return functionBo;
	}

	public void setFunctionBo(IFunctionBo functionBo) {
		this.functionBo = functionBo;
	}

	public List<TreeNode> getTreeNodeList() {
		return treeNodeList;
	}

	public void setTreeNodeList(List<TreeNode> treeNodeList) {
		this.treeNodeList = treeNodeList;
	}

	public TreeNode getNode() {
		return node;
	}

	public void setNode(TreeNode node) {
		this.node = node;
	}

}
